package com.chuyangc.qdms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 欧楚杨
 * @TableName transport
 */
@TableName(value ="transport")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "物流实体类")
public class Transport implements Serializable {
    /**
     * 物流id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "物流id")
    private Integer id;

    /**
     * 经手人
     */
    @TableField(value = "handler")
    @ApiModelProperty(value = "经手人")
    private String handler;

    /**
     * 收货人
     */
    @TableField(value = "reciver")
    @ApiModelProperty(value = "收货人")
    private String reciver;

    /**
     * 物流状态
     */
    @TableField(value = "transportType")
    @ApiModelProperty(value = "物流状态")
    private Integer transporttype;
    /**
     * 物流状态常量:发货中, 送货中, 已签收
     */
    public static final int SENDDING = 1;// 发货中
    public static final int TRANSPORTING = 2;// 送货中
    public static final int RECIEVED = 3;// 已签收

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}